package com.guli.edu.client;

import com.guli.utils.R;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author ZHAOZHENYU
 * @since 2022/10/1
 * 熔断器
 */
@Component
public class VodFileDegradeFeignClient implements VodClient {
    @Override
    public R removeVideo(String videoId) {
        System.out.println("超时。。。");
        return R.error().message("超时。。。");
    }

    @Override
    public R deleteBatch(List<String> videoIdList) {
        return R.error().message("time out");
    }
}
